package game.connection;


import java.util.Observable;

/**
 * This class makes an announcement to notify the observer 
 * 
 * NOTE : 1. This is for eliminate the limitation that setChanged() is protected.
 * 		  2. This is not an Abstract class. It's able to instantiate. 
 * 
 * @author Sarun Wongtanakarn 5510546166
 * @author Apiwat Jierakulpanit 5510546212
 * @Version 2013.04.02
 */
public class Announcer extends Observable {

	/**
	 * Notifies its observers.
	 */
	public void announce() {
		setChanged();
		notifyObservers();
	}
	
	/**
	 * Notifies its observers with argument.
	 * 
	 * @param arg argument to be notified.
	 */
	public void announce(Object arg) {
		setChanged();
		notifyObservers(arg);
	}
}
